<template>
  <div>
    <input type="text" v-model.trim="count" />
    <button @click="submit">点击</button>
  </div>
</template>
<script>
export default {
  data() {
    return {
      count: 10,
    }
  },
  methods: {
    submit() {
      console.log(this.count)
    },
  },
}
</script>
